<?php
/* @var $this RelatedlinkController */
/* @var $model Relatedlink */

$this->breadcrumbs=array(
	'友情链接',
);

$this->menu=array(
	array('label'=>'返回后台主页', 'url'=>array('default/index')),
	array('label'=>'创建友情链接', 'url'=>array('create')),
);
?>

<h1>友情链接管理</h1>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'relatedlink-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'relatedlink_id',
		array(
			'name'=>'type',
			'value'=>'$data->getTypeText()',
			'filter'=>array('0'=>'校外链接','1'=>'校内链接'),
		),
		'title',
		'url',
		'description',
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
